package com.lianzhihui.romeex.widget.dialog;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.lianzhihui.romeex.R;
import com.lianzhihui.romeex.ui.base.BaseDialog;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Description:
 * Author: RAMON
 * CreateDate: 11/19/20 11:29 AM
 * UpdateUser:
 * UpdateDate:
 * UpdateRemark:
 * Version:
 */
public class RoAlertDialog extends BaseDialog {

    @BindView(R.id.tv_title)
    TextView tv_title;
    @BindView(R.id.tv_content)
    TextView tv_content;
    @BindView(R.id.bt_submit)
    TextView bt_submit;

    public RoAlertDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    protected int provideViewId() {
        return R.layout.dialog_alert_layout;
    }

    @Override
    protected void initView() {
        setCancelable(false);
    }

    public void setTitle(String title) {
        tv_title.setText(title);
    }

    public void setContent(String content) {
        tv_content.setText(content);
    }

    @OnClick({R.id.bt_submit})
    public void onClick(View view) {
        if (view.getId() == R.id.bt_submit) {
            dismiss();
        }
    }
}
